//
//  PayWayBottomV.m
//  YangWifi
//
//  Created by zuoxueliangduyuanzhuo on 2017/6/20.
//  Copyright © 2017年 zuoxueliangduyuanzhuo. All rights reserved.
//

#import "PayWayBottomV.h"

@implementation PayWayBottomV

-(id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if(self)
    {
        //you init
//       [self addSubview:[PayWayBottomV instancePayWayBottomV]];
        [self setUp];
    }
    return self;
}


- (IBAction)payClick:(UIButton *)sender
{
    
    if (self.PayWayChooseHandler) {
        if (sender.tag == 100) {
            self.PayWayChooseHandler(PayWayTypeAli);
        }else{
            self.PayWayChooseHandler(PayWayTypeWechat);
        }
    }

}

- (void)setUp
{
    [[NSBundle mainBundle] loadNibNamed:@"PayWayBottomV" owner:self options:nil];
    [self addSubview:self.view];
}

+ (PayWayBottomV *)instancePayWayBottomV
{
    NSArray* nibView =  [[NSBundle mainBundle] loadNibNamed:@"PayWayBottomV" owner:nil options:nil];
    return [nibView objectAtIndex:0];
}


@end
